class_name GameOverMenu extends CenterContainer


@onready var _score_label: Label = $VBoxContainer/PanelContainer/MarginContainer/VBoxContainer/ScoreLabel as Label


func _on_retry_button_pressed() -> void:
	get_tree().reload_current_scene()


func _on_menu_button_pressed() -> void:
	get_tree().change_scene_to_file("res://screens/ui/menu.tscn")
	

func refresh_score(value: float):
	_score_label.text = "Your score:{0}".format([ floor(value) ])
